home *** CD-ROM | disk | FTP | other *** search
/ Champak Vol A-4 / (Vol A-4) Vol. A4.iso / Games / loa_and_the_island.swf / scripts / DefineSprite_772 / frame_22 / PlaceObject2_575_198 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Text File  |  2008-03-17  |  961b  |  33 lines

  1. onClipEvent(enterFrame){
  2.    if(_root.paused == false)
  3.    {
  4.       if(_root.level.sprite._x > _X - 100 + _parent._x and _root.level.sprite._x < _X + 100 + _parent._x and _root.level.sprite._y > _Y - 100 + _parent._y and _root.level.sprite._y < _Y + 100 + _parent._y and _root.level.sprite.inair == false)
  5.       {
  6.          gotoAndStop(1);
  7.          if(key.isdown(88) and keypressed == false)
  8.          {
  9.             _root.paused = true;
  10.             _root.conversation = true;
  11.             keypressed = true;
  12.             _root.level.sprite.gotoAndStop("stand");
  13.             if(_global.ticket == false)
  14.             {
  15.                _root.topic = "pyramid2";
  16.             }
  17.             if(_global.ticket == true)
  18.             {
  19.                _root.topic = "pyramid3";
  20.             }
  21.          }
  22.       }
  23.       else
  24.       {
  25.          gotoAndStop(2);
  26.       }
  27.       if(key.isdown(88) == false)
  28.       {
  29.          keypressed = false;
  30.       }
  31.    }
  32. }
  33.